/********************************************************************************
** Form generated from reading UI file 'QNoteEditWindow.ui'
**
** Created: Fri Sep 3 09:08:29 2010
**      by: Qt User Interface Compiler version 4.7.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_QNOTEEDITWINDOW_H
#define UI_QNOTEEDITWINDOW_H

#include <QtCore/QVariant>
#include <MAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGraphicsGridLayout>
#include <QtGui/QHeaderView>
#include <MApplicationPage>
#include <MWidget>
#include <MTextEdit>
#include <MPannableViewport>
#include <QtWebKit/QGraphicsWebView>

QT_BEGIN_NAMESPACE

class Ui_QNoteEditWindowClass
{
public:
    MWidget *centralwidget;
    QGraphicsGridLayout *gridLayout_2;
    MPannableViewport *scrollArea;
    MWidget *scrollAreaWidgetContents;
    QGraphicsGridLayout *gridLayout;
    MTextEdit *leNoteTitle;
    QGraphicsWebView *wvNoteEdit;
    QMenuBar *menubar;

    MAction* actGps;
    MAction* actBold;
	MAction* actItalic;
	MAction* actUnderline;
	MAction* actBullets;
	MAction* actAddTodo;
	MAction* actAddTag;
	MAction* actAttachFile;
	MAction* actEmailNote;
	MAction* actSaveNote;

    void setupUi(MApplicationPage *QNoteEditWindowClass)
    {
        if (QNoteEditWindowClass->objectName().isEmpty())
            QNoteEditWindowClass->setObjectName(QString::fromUtf8("QNoteEditWindowClass"));
        QNoteEditWindowClass->resize(800, 436);
        centralwidget = new MWidget(QNoteEditWindowClass);
        centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
        gridLayout_2 = new QGraphicsGridLayout(centralwidget);
        gridLayout_2->setSpacing(0);
        gridLayout_2->setContentsMargins(0, 0, 0, 0);
        scrollArea = new MPannableViewport(centralwidget);
        scrollArea->setObjectName(QString::fromUtf8("scrollArea"));
        scrollAreaWidgetContents = new MWidget();
        scrollAreaWidgetContents->setObjectName(QString::fromUtf8("scrollAreaWidgetContents"));
        scrollAreaWidgetContents->setGeometry(QRect(0, 0, 800, 411));
        gridLayout = new QGraphicsGridLayout(scrollAreaWidgetContents);
        gridLayout->setContentsMargins(0, 0, 0, 0);
        leNoteTitle = new MTextEdit();
        leNoteTitle->setObjectName(QString::fromUtf8("leNoteTitle"));

        gridLayout->addItem(leNoteTitle, 0, 0, 1, 2);

        wvNoteEdit = new QGraphicsWebView(scrollAreaWidgetContents);
        wvNoteEdit->setObjectName(QString::fromUtf8("wvNoteEdit"));
        wvNoteEdit->setUrl(QUrl("about:blank"));
        //wvNoteEdit->setRenderHints(QPainter::Antialiasing|QPainter::SmoothPixmapTransform|QPainter::TextAntialiasing);

        gridLayout->addItem(wvNoteEdit, 1, 0, 1, 2);

        scrollArea->setWidget(scrollAreaWidgetContents);

        gridLayout_2->addItem(scrollArea, 0, 0, 1, 1);

        actBold = new MAction(":/IconAdd/general_bold.png", "Bold", QNoteEditWindowClass);
		actItalic = new MAction(":/IconAdd/general_italic.png", "Italic", QNoteEditWindowClass);
		actUnderline = new MAction(":/IconAdd/notes_underline.png", "Underline", QNoteEditWindowClass);
		actBullets = new MAction(":/IconAdd/notes_bullets.png", "Bullets", QNoteEditWindowClass);
		actAddTodo = new MAction(":/IconAdd/calendar_todo.png", "Todo", QNoteEditWindowClass);
		actAddTag = new MAction(":/IconAdd/general_tag.png", "Add tag", QNoteEditWindowClass);
		actAttachFile = new MAction(":/IconAdd/email_attachment.png", "Attach file", QNoteEditWindowClass);
		actEmailNote = new MAction("Email note", QNoteEditWindowClass);
		actSaveNote = new MAction(":/IconAdd/notes_save.png", "Save note", QNoteEditWindowClass);
		actGps = new MAction(":/IconAdd/gps_location.png", "Location", QNoteEditWindowClass);

		actBold->setCheckable(true);
		actItalic->setCheckable(true);
		actUnderline->setCheckable(true);

		actEmailNote->setLocation(MAction::ApplicationMenuLocation);
		actSaveNote->setLocation(MAction::ApplicationMenuLocation);

		QNoteEditWindowClass->addAction(actEmailNote);
		QNoteEditWindowClass->addAction(actSaveNote);

		actBold->setLocation(MAction::ToolBarLocation);
		actItalic->setLocation(MAction::ToolBarLocation);
		actUnderline->setLocation(MAction::ToolBarLocation);
		actBullets->setLocation(MAction::ToolBarLocation);
		actAddTodo->setLocation(MAction::ToolBarLocation);
		actAddTag->setLocation(MAction::ToolBarLocation);
		actAttachFile->setLocation(MAction::ToolBarLocation);
		actEmailNote->setLocation(MAction::ToolBarLocation);
		actSaveNote->setLocation(MAction::ToolBarLocation);
		actGps->setLocation(MAction::ToolBarLocation);

		QNoteEditWindowClass->addAction(actBold);
		QNoteEditWindowClass->addAction(actItalic);
		QNoteEditWindowClass->addAction(actUnderline);
		QNoteEditWindowClass->addAction(actBullets);
		QNoteEditWindowClass->addAction(actAddTodo);
		QNoteEditWindowClass->addAction(actAddTag);
		QNoteEditWindowClass->addAction(actAttachFile);
		QNoteEditWindowClass->addAction(actEmailNote);
		QNoteEditWindowClass->addAction(actSaveNote);
		QNoteEditWindowClass->addAction(actGps);

		QObject::connect(actSaveNote, SIGNAL(triggered(bool)), QNoteEditWindowClass, SLOT(saveNote()));
		QObject::connect(actEmailNote, SIGNAL(triggered(bool)), QNoteEditWindowClass, SLOT(emailNote()));
		QObject::connect(actAddTag, SIGNAL(triggered(bool)), QNoteEditWindowClass, SLOT(openTagSelectorDialog()));
		QObject::connect(actBold, SIGNAL(toggled(bool)), QNoteEditWindowClass, SLOT(toggleBoldStyle()));
		QObject::connect(actItalic, SIGNAL(toggled(bool)), QNoteEditWindowClass, SLOT(toggleItalicStyle()));
		QObject::connect(actUnderline, SIGNAL(toggled(bool)), QNoteEditWindowClass, SLOT(toggleUnderlineStyle()));
		QObject::connect(actBullets, SIGNAL(triggered()), QNoteEditWindowClass, SLOT(addBullet()));
		QObject::connect(actAttachFile, SIGNAL(triggered()), QNoteEditWindowClass, SLOT(attachFile()));
		QObject::connect(actAddTodo, SIGNAL(triggered()), QNoteEditWindowClass, SLOT(insertTodo()));
		QObject::connect(actGps, SIGNAL(triggered()), QNoteEditWindowClass, SLOT(startGpsLocationUpdate()));

        QNoteEditWindowClass->setCentralWidget(centralwidget);

        retranslateUi(QNoteEditWindowClass);

        QMetaObject::connectSlotsByName(QNoteEditWindowClass);
    } // setupUi

    void retranslateUi(MApplicationPage *QNoteEditWindowClass)
    {
        QNoteEditWindowClass->setWindowTitle(QApplication::translate("QNoteEditWindowClass", "MainWindow", 0, QApplication::UnicodeUTF8));
    } // retranslateUi

};

namespace Ui {
    class QNoteEditWindowClass: public Ui_QNoteEditWindowClass {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_QNOTEEDITWINDOW_H
